import request from '@/utils/request.js'

// 查询商家收支明细列表
export function listShopDetail(query) {
  return request({
    url: '/order/shopDetail/list',
    method: 'get',
    params: query
  })
}

// 查询商家收支明细详细
export function getShopDetail(id) {
  return request({
    url: '/order/shopDetail/' + id,
    method: 'get'
  })
}

// 新增商家收支明细
export function addShopDetail(data) {
  return request({
    url: '/order/shopDetail',
    method: 'post',
    data: data
  })
}

// 修改商家收支明细
export function updateShopDetail(data) {
  return request({
    url: '/order/shopDetail',
    method: 'put',
    data: data
  })
}

// 删除商家收支明细
export function delShopDetail(id) {
  return request({
    url: '/order/shopDetail/' + id,
    method: 'delete'
  })
}
